#!/usr/bin/env python
# -*- coding:utf-8 -*-
#Queue方法

import Queue
obj=Queue.Queue(3)
obj.put(1)
# obj.put(2)
# obj.put_nowait(3)
print obj.get()
try:
    print obj.get_nowait()
except Queue.Empty:
    print "nothing"